package com.linked.basemanage.switchsetting.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.linked.basemanage.base.bean.param.SwitchSettingPageParam;
import com.linked.basemanage.base.bean.po.SwitchInfoPO;

import java.util.List;

/**
 * @author :dbq
 * @date : 2022/11/24 8:32
 */
public interface ISwitchSettingService {
    IPage<SwitchInfoPO> querySwtichSettingPage(SwitchSettingPageParam param) throws Exception;

    boolean saveSwitchInfo(SwitchInfoPO param) throws Exception;

    boolean updateSwitchInfo(SwitchInfoPO temp) throws Exception;

    SwitchInfoPO findSwitchByName(String switchName) throws Exception;

    List<SwitchInfoPO> querySwitchList(SwitchInfoPO param) throws Exception;

    Boolean findSwitchStatus(String switchCode);

    Boolean turnSwitch(String switchCode);
}
